package com.ctosb.classviewer.clazz.attr.frame;

import com.ctosb.classviewer.ClassReader;
import com.ctosb.classviewer.clazz.AbstractParse;
import com.ctosb.classviewer.clazz.Parseable;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public abstract class BaseFrame extends AbstractParse {

    private byte frame_type;

    @Override
    public BaseFrame parse(ClassReader classReader) {
        doParse(classReader);
        return this;
    }

    protected abstract void doParse(ClassReader classReader);
}
